home *** CD-ROM | disk | FTP | other *** search
- Short: Nice&simple Miami phone log parser w/src
- Author: thorgal@amiga.com.pl
- Uploader: thorgal@amiga.com.pl
- Type: comm/misc
-
- Some time ago I hacked this simple flex parser to calculate my phone-bill
- value from the logfile generated by Miami. A few of my friends liked it
- and seem to use it frequently, so I decided to release it in the hope that
- there may be more persons preferring simplicity over baroqueness of other
- log-analyzers. As for the source, let's say it's under GPL.
-
- Usage:
-
- MiamiLog <Miami:phone.log
-
- and the output looks like this:
-
- ---------------------------------------------------------------------
-
- day 01: #############
- day 02: ########
- day 03: #############################
- day 04: ###############
- day 05: ############
- day 06: ###################
- day 07: ############
- day 08: ########
- day 09: #############
- day 10: #######
- day 11: ###############################
- day 12: ###########
- day 13: ###
- day 14: #######
- day 15: ######################
- day 16: ###
- day 17: #######
- day 18: ####################
- day 19: ####
- day 20: ###
- day 21: ##########
- day 22: ######
- day 23: ####
- day 24: #################
- day 25: ####################
- day 26: ########################
- day 27: ###
-
- Last connection: 3 pulses (0.66 zl)
- Sum: 332 pulses
- Price: 73.04 zl
- Daily: 2.71 zl
-
- WARNING!!!
- There was 1 crash so the actual pulse count may be higher!
-
- ---------------------------------------------------------------------
-
- As you can see, it calculates the cost in "zlotys" using current rates for
- telephone connection in Poland. Modifying it to support other
- rates/countries is trivial and is left as an exercise for the reader.
-
- And BTW - MiamiLog only understands logfiles containing entries from ONE
- month. Yes, I know, but remember - I am not charging money for this stuff. :)
-
- Have fun,
- Milek
-
-
- ============================= Archive contents =============================
-
- Original Packed Ratio Date Time Name
- -------- ------- ----- --------- -------- -------------
- 1188 552 53.5% 01-Mar-98 01:00:36 MiamiLog.info
- 22112 13037 41.0% 01-Mar-98 00:59:34 +MiamiLog
- 2727 1036 62.0% 01-Mar-98 00:57:36 +MiamiLog.l
- 1805 801 55.6% 01-Mar-98 00:56:44 +MiamiLog.readme
- 95 79 16.8% 01-Mar-98 00:59:20 +SCOPTIONS
- -------- ------- ----- --------- --------
- 27927 15505 44.4% 01-Mar-98 15:59:26 5 files
-